package com.example.factory.api.facade;

import com.example.factory.api.dto.DtoEquipment;
import com.example.factory.api.dto.Response;
import com.example.factory.api.dto.form.DtoEquipmentForm;
import com.example.factory.api.dto.form.DtoQueryEquipmentListForm;

import java.util.List;

/**
 * @author Lei Tao
 */
public interface EquipmentFacade {
    Response<List<DtoEquipment>> retrieveEquipments(DtoQueryEquipmentListForm dtoQueryEquipmentListForm);

    Response<DtoEquipment> retrieveEquipment(String guid);

    Response<Void> deleteEquipment(String guid);

    Response<DtoEquipment> saveOrUpdate(DtoEquipmentForm dtoEquipmentForm);
}
